import Vue from 'vue'
// Vue.directive('imgerror', {
//   inserted(el, binding) {
//     console.log(el);
//     console.log(binding);
//   }
// })
export const imgerror = {
  inserted(el, binding) {
    el.onerror = function () {
      console.log('出错');
      el.src = binding.value
    }
    // console.log(el);
    // console.log(binding);
  }
}
